<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="@{/static/css/login.css}">
  <title>登录</title>
</head>

<body>
<section>
  <!-- 背景颜色 -->
  <div class="color"></div>
  <div class="color"></div>
  <div class="color"></div>
  <div class="box">
    <!-- 背景圆 -->
    <div class="circle" style="--x:0"></div>
    <div class="circle" style="--x:1"></div>
    <div class="circle" style="--x:2"></div>
    <div class="circle" style="--x:3"></div>
    <div class="circle" style="--x:4"></div>
    <!-- 登录框 -->
    <div class="container">
      <div class="form">
        <h2>登录</h2>
        <form role="form" action = "/loginIn" method="post">
          <div class="inputBox">
            <input type="text" id="name" name = "name" placeholder="姓名">

          </div>
          <div class="inputBox">
            <input type="password" id = "password" name = "password" placeholder="密码">

          </div>
          <div class="inputBox">
            <input type="submit" id = "login" onclick="myFunction()" value="登录">
          </div>
          <p class="forget">没有账户?<a th:href="@{/register}">
            注册
          </a></p>
        </form>
      </div>
    </div>
  </div>
</section>

<script>
  function myFunction(){
    alert("Hello\nHow are you?");
  }
</script>
</body>

</html>